﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;
using System.Collections;
namespace WindowsGame4
{
    public class Weapon : GameObject
    {
        public float damage;
        public int level;
        public Player player;
        
        public bool bIsFiring;
        public Weapon(Player owner)
            : base()
        {
            player = owner;
            bCollides = false;
            damage = 0;
            level = 1;
            bIsFiring = false;
        }
        public virtual void BeginFire(Vector2 target)
        {
            bIsFiring = true;
            Fire(target);
        }
        public virtual void Fire(Vector2 target)
        {
        }
        public virtual void EndFire(Vector2 target)
        {
            bIsFiring = false;
        }
        public virtual void SetLevel(int level)
        {
            this.level = level;
        }
    }
}
